	<div id="page-content">
			<div class="col-lg-12">
		        <div class="panel">
		            <div class="panel-heading">
		                <h3 class="panel-title" style="text-align: right;">
		                	#@installPJaxGoBackBtn()
							#@installFlowHisBtn(defId,procInsId)
							#@installAttachment(o?o.id:'')
		                </h3>
		            </div>
					#@buildFormPanelContainer("加班申请单","/WEB-INF/admin/oa/apply/workovertime/editForm.html")
					#@buildWorkFlowHisTable(procInsId,hislist)
		        </div>
		    </div>
	</div>
	<script>
		function save(){
			var data = common_ajax.ajaxFunc("/admin/oa/apply/workovertime/save", $('#editForm').serialize(), "json", null);
			if(data.success){
				pointLion.alertMsg("保存成功!" , "success" , "small" , function(){
					location.href = ctx+'/admin/oa/apply/workovertime/getListPage';//跳转到列表页
				},data);
			}else{
				pointLion.alertMsg(data.message , "danger" , "small" , function(){
					$(".btn").removeAttr("disabled");
				},data);
			}
		}
		$(document).ready(function() {
			$('#editForm').bootstrapValidator({
				fields: {
					"#(formModelName).work_content": {
						validators: {
							notEmpty: {
								message: '*工作内容不能为空'
							}
						}
					},
					"#(formModelName).work_hour":{
						validators:{
							regexp: {
								regexp: /(^[1-9](\d+)?(\.\d{1,2})?$)|(^0$)|(^\d\.\d{1,2}$)/,
								message: '只能是数字（最长两位小数）。'
							}
						}
					}
				}
	        }).on("success.form.bv", function (e) {
	            save();
	            return false;//阻止表单跳转
	        });
		});
	</script>